<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="../links.jsp"></jsp:include>
</head>
<body>
	<script type="text/javascript">
		var show_show_business_datagrid;
		var show_show_business_searchForm;
		$(function() {
			show_business_datagrid = $('#show_business_datagrid').datagrid({
				url : getRootPath() + '/businessAction/show_relation_datagrid.do',
				title : '用户和客户关系表',
				iconCls : 'icon-save',
				pagination : true,
				pageSize : 10,
				pageList : [ 10, 20, 30, 40, 50 ],
				fit : true,
				fitColumns : true,
				nowarp : false,
				border : false,
				idField : 'uid',
				sortName : 'uid',
				sortOrder : 'asc',
				columns : [ [ {
					title : '用户编号',
					field : 'uid',
					width : 100,
					sortable : true
				}, {
					title : '用户姓名',
					field : 'name',
					width : 100,
					sortable : true
				}, {
					title : '客户编号',
					field : 'cid',
					width : 100,
					sortable : true
				}, {
					title : '客户姓名',
					field : 'cname',
					width : 100
				}, {
					title : '合作业务',
					field : 'b_business',
					width : 100,
					sortable : true
				}, {
					title : '业务评价',
					field : 'b_evaluate',
					width : 100
				} ] ]
			});//datagrid end
			//过滤查询
			show_business_searchForm = $('#show_business_searchForm').form();
			doSearch = function() {
				//console.info('11');
				console.info(serializeObject(show_business_searchForm));
				show_business_datagrid.datagrid('load', serializeObject(show_business_searchForm));
			};
			//重置
			cleanSearch = function() {
				show_business_datagrid.datagrid('load', {});
				show_business_searchForm.find('input').val('');
			};
		});
	</script>
	<div class="easyui-layout" fit="true" border="false">
		<div data-options="region:'north',title:'模糊查询条件：'" style="height: 100%;">
			<form id="show_business_searchForm" method="post">
				<table clase="tableForm" style="width: 100%; height: 60%;">
					<tr>
						<th>用户编号</th>
						<td><input name="uid" /></td>
						<th>客户编号</th>
						<td><input name="cid" /></td>
						<th>合作业务</th>
						<td><input name="b_business" />&nbsp;<a class="easyui-linkbutton" style="width: 30%"
							data-options="iconCls:'icon-search'" href="javascript:void(0)" onclick="doSearch();">查询</a></td>
					</tr>
					<tr>
						<th>用户姓名</th>
						<td><input name="name" /></td>
						<th>客户姓名</th>
						<td><input name="cname" /></td>
						<th>业务评价</th>
						<td><input name="b_evaluate" />&nbsp;<a class="easyui-linkbutton" style="width: 30%"
							data-options="iconCls:'icon-redo'" href="javascript:void(0)" onclick="cleanSearch();">清空</a></td>
					</tr>
				</table>
			</form>
		</div>
		<div data-options="region:'center',title:''," style="overflow: hidden;">
			<table id="show_business_datagrid">
			</table>
		</div>
	</div>
</body>
</html>